package com.jl.jlapp.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestBuilder;
import com.bumptech.glide.RequestManager;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.CustomerServiceByUserIdAndOrderIdModel;
import com.jl.jlapp.eneity.CustomerServiceByUserIdAndOrderIdModel.ResultDataBean.OrderTableBean.OrderDetailsBean;
import java.util.List;

public class AfterSaleDetailGoodsListAdapter
  extends BaseQuickAdapter<OrderDetailsBean, BaseViewHolder>
{
  public AfterSaleDetailGoodsListAdapter(@LayoutRes int paramInt, @Nullable List<OrderDetailsBean> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, OrderDetailsBean paramOrderDetailsBean)
  {
    String str = paramOrderDetailsBean.getGoodsCoverUrl();
    ImageView localImageView = (ImageView)paramBaseViewHolder.getView(R.id.goods_img);
    paramBaseViewHolder.setText(R.id.goods_name, paramOrderDetailsBean.getGoodsName());
    paramBaseViewHolder.setText(R.id.goods_price, paramOrderDetailsBean.getGoodsOriginalPrice() + "");
    paramBaseViewHolder.setText(R.id.my_order_goods_num, paramOrderDetailsBean.getGoodsQuantity() + "");
    paramBaseViewHolder.setText(R.id.goods_total_price, paramOrderDetailsBean.getGoodsOriginalPrice() * paramOrderDetailsBean.getGoodsQuantity() + "");
    if ((str == null) || (str == ""))
    {
      Glide.with(paramBaseViewHolder.itemView.getContext()).asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_noimg_xs).error(R.drawable.img_lose_xs)).load(R.drawable.img_noimg_xs).into(localImageView);
      return;
    }
    Glide.with(paramBaseViewHolder.itemView.getContext()).asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_noimg_xs).error(R.drawable.img_lose_xs)).load("http://117.158.178.202:8001/JLMIS/" + str).into(localImageView);
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/AfterSaleDetailGoodsListAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */